import java.io.*;
import java.net.*;
import java.sql.*;
import java.util.Scanner;


public class Client {
	static BufferedReader buf = null;
	
	public static void main(String args[]) throws Exception{
		Socket client = new Socket("172.18.111.209",10007);
		PrintStream out=new PrintStream(client.getOutputStream());
		buf=new BufferedReader(new InputStreamReader(client.getInputStream()));
		Scanner in = new Scanner(System.in);
		String user = in.nextLine();
		out.println(user);
		
		ClientThread thread  = new ClientThread();
		thread.start();
		while(true){
			String str = in.nextLine();
			out.println(str);
			str = in.nextLine();
			out.println(str);
		}
//		client.close();
	}
}
